<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>博客编辑页</title>
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/blog_edit.css">
    <script src="js/jquery.min.js"></script>
    <!-- 引入editor.md的依赖 -->
    <link rel="stylesheet" href="editor.md/css/editormd.min.css" />
    <script src="editor.md/lib/marked.min.js"></script>
    <script src="editor.md/lib/prettify.min.js"></script>
    <script src="editor.md/editormd.js"></script>
</head>
<body>
     <!-- 导航栏 -->
     <div class="nav">
        <img src="image/导航栏.jpg">
        <span>博客编辑</span>
        <div class="spacer"></div>
        <!-- 这个标签只用于占位 -->
        <a href="#">主页</a>
        <a href="#">写博客</a>
        <a href="#">注销</a>
     </div>
     <div class="edit-container">
        <!-- 博客标题编辑 -->
        <div class="title">
            <input type="text" id="title" placeholder="请输入文章标题">
            <button id="submit">发表文章</button>
        </div>
        <!-- 博客内容编辑，与markdown对接 -->
        <div id ="editor"></div>
     </div>
     <script>
        var editor = editormd("editor",{
            width:"100%",
            height:"calc(100% - 50px)",
            markdown:"# 在这里写下一篇博客",
            path:"editor.md/lib/"
        });
     </script>
</body>
</html>